import request from "@/utils/request";
import { IQueryParams } from "./data";

// 列表
export async function queryList(data?: IQueryParams): Promise<any> {
	return request({
		url: "/nutrition/admin/onlinePatient/pageList",
		method: "post",
		data,
	});
}

// 导出
export async function exportExcel(data?: IQueryParams): Promise<any> {
	return request({
		url: "/nutrition/admin/onlinePatient/downloadExcel",
		method: "post",
		data,
	});
}
